<template>
  <div>
    <Header />
    <router-view></router-view>
    <Footer v-show="!$route.meta.FooterIsHidden" />
  </div>
</template>

<script>
import Header from "@comp/Header";
import Footer from "@comp/Footer";
import { mapActions } from "vuex";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  mounted() {
    // 初始化的时候让vuex请求categoryList数据
    this.getCategoryList();
  },

  methods: {
    ...mapActions("home", ["getCategoryList"]),
  },
};
</script>

<style lang="less" scoped>
</style>
